#ifndef	_IO_H_
#define	_IO_H_

int putchar(int c);

int puts(const char * s);

int getchar(void);

int printf(const char * format, ...);

unsigned long inportl (unsigned short _port);
void outportl (unsigned short _port, unsigned long _data);

/* Fuente: http://www.osdever.net/bkerndev/Docs/printing.htm */
void inportb (unsigned short _port, unsigned char * rv);
/* Fuente: http://www.osdever.net/bkerndev/Docs/printing.htm */
void outportb (unsigned short _port, unsigned char _data);

unsigned short inw(unsigned short port);

void outw(unsigned short port, unsigned short val);

/* Fuente: http://forum.osdev.org/viewtopic.php?f=1&t=17354&start=0&st=0&sk=t&sd=a */
unsigned char readCMOS(unsigned char addr);
#endif
